import { TyExistApplication } from '@tsdy/exist'
import Mongoose from 'mongoose'
import { IndexController } from './controller/index.controller'

async function bootstrap() {
    await Mongoose.connect(process.env.DB_URL)
    new TyExistApplication({
        port: Number(process.env.PORT),
        cors: true,
        controllers: [
            IndexController,
        ],
    })
}
bootstrap()